package org.lisz.order.feign.impl;

import org.lisz.order.feign.ProductFeignClient;
import org.lisz.product.po.Product;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

@Component
public class ProductFallBackFeign implements ProductFeignClient {
    @Override
    public Product getProducts(Long id) {
        Product product = new Product();
        product.setProductNamne("sss");
        product.setNum(4);
        product.setId(123L);
        product.setPrice(BigDecimal.valueOf(987));
        return product;
    }
}
